package com.example.demo.controller;

import com.example.demo.server.UserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.xml.ws.Action;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2023-03-10
 * Time: 17:25
 */
@Controller
@RequestMapping("/index")
public class UserController {

    @Autowired
    private UserServer userServer;

    @ResponseBody
    @RequestMapping("/getcontroller")
    public void getController() {
        userServer.getServer();
    }
}
